package com.baffle.socket;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;

import com.baffle.socket.common.SocketServer;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // 排除自动配置
public class SocketApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(SocketApplication.class, args);
        applicationContext.getBean(SocketServer.class).start();
    }

}
